package org.bee.check.model;

/**
 * 数据检查结果
 */
public class CheckResult {
    private boolean result;
    private String msg;

    public static CheckResult success() {
        CheckResult checkResult = new CheckResult();
        checkResult.setResult(true);
        checkResult.setMsg("检查成功");
        return checkResult;
    }

    public static CheckResult fail() {
        CheckResult checkResult = new CheckResult();
        checkResult.setResult(false);
        checkResult.setMsg("检查失败");
        return checkResult;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
